<?php

global $cfgGetdate;
global $tmpGetdate;
global $prtDayorNight;
global $minutes;

$cfgGetdate = getdate();


if (strlen($cfgGetdate['minutes'])==1)
{
	$minutes = "0".$cfgGetdate['minutes'];
}else{
	$minutes = $cfgGetdate['minutes'];
}
$tmpGetdate = $cfgGetdate['hours'].$minutes + 0;

if ((int)$cfgGetdate['hours']<=0)
{
	$tmpGetdate = 0;
}
/*
echo "<!--";
print_r($cfgGetdate);
echo "//-->";
*/

if (((int)$tmpGetdate>1859) OR (((int)$tmpGetdate>=0) AND ((int)$tmpGetdate<600)))
{
	$prtDayOrNight = "night";
}else{
	$prtDayOrNight = "day";
}

//echo "<!-- ".$tmpGetdate." //-->";

?>